package com.app.service.impl.superarket;

import com.app.mapper.supermarket.MktPersonMapper;
import com.app.mapper.supermarket.OddJobPicListMapper;
import com.app.model.supermarket.MktPersonModel;
import com.app.model.supermarket.OddJobPicListModel;
import com.app.service.supermarket.MktPersonService;
import com.app.service.supermarket.OddJobPicListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Description:零活
 * @Author: N
 * @Date: 2022年11月24日 10点29分
 */
@Service
@Primary
public class OddJobPicListServiceImpl implements OddJobPicListService {
    @Autowired
    OddJobPicListMapper oddJobPicListMapper;


    @Override
    public int insert(OddJobPicListModel model) {
        return oddJobPicListMapper.insert(model);
    }

    @Override
    public void deleteByOid(int oid) {
        oddJobPicListMapper.deleteByOid(oid);
    }

    @Override
    public void deleteById(int id) {
        oddJobPicListMapper.deleteByOid(id);
    }

    @Override
    public List<OddJobPicListModel> getListByOid(int oid) {
        return oddJobPicListMapper.getListByOid(oid);
    }
}
